package com.Entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ClickInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "clickInfo", catalog = "smartsofa")
public class ClickInfo implements java.io.Serializable {

	// Fields

	private long clickId;
	private Integer userId;
	private long infoId;
	private Date clickTime;
	private Integer clickNum;

	// Constructors

	/** default constructor */
	public ClickInfo() {
	}

	/** full constructor */
	public ClickInfo(Integer userId, long infoId, Date clickTime,
			Integer clickNum) {
		this.userId = userId;
		this.infoId = infoId;
		this.clickTime = clickTime;
		this.clickNum = clickNum;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "clickId", unique = true, nullable = false)
	public long getClickId() {
		return this.clickId;
	}

	public void setClickId(long clickId) {
		this.clickId = clickId;
	}

	@Column(name = "userId")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "infoId")
	public long getInfoId() {
		return this.infoId;
	}

	public void setInfoId(long infoId) {
		this.infoId = infoId;
	}

	@Column(name = "clickTime", length = 19)
	public Date getClickTime() {
		return this.clickTime;
	}

	public void setClickTime(Date clickTime) {
		this.clickTime = clickTime;
	}

	@Column(name = "clickNum")
	public Integer getClickNum() {
		return this.clickNum;
	}

	public void setClickNum(Integer clickNum) {
		this.clickNum = clickNum;
	}

}